/*
 * PimpApp.java
 */

package pimp;

import com.javaworkspace.connectsqlite.ConnectSQLite;
import org.jdesktop.application.Application;
import org.jdesktop.application.SingleFrameApplication;
import pimp.organizermanager.OrganizerManager;

public class PimpApp extends SingleFrameApplication {

    OrganizerManager om = OrganizerManager.getInstance();

    /**
     * At startup create and show the main frame of the application.
     */
    @Override protected void startup() {
        show(GFX.getInstance(this));
    }

    /**
     * This method is to initialize the specified window by injecting resources.
     * Windows shown in our application come fully initialized from the GUI
     * builder, so this additional configuration is not needed.
     */
    @Override protected void configureWindow(java.awt.Window root) {
    }

    /**
     * A convenient static getter for the application instance.
     * @return the instance of PimpApp
     */
    public static PimpApp getApplication() {
        return Application.getInstance(PimpApp.class);
    }

    public static void main(String[] args) {
        try{
            launch(PimpApp.class, args);
            
        }
        catch(Exception ex)
        {
            System.out.println("Operation almost succesfull!");
        }

        ConnectSQLite.main(null);
    }
}
